import React, {useEffect} from 'react';
import {View,} from '@tarojs/components';


import styles from './index.module.scss';
import {allGoodsPromotionList} from "@/mall/pages/cart/data";
import OrderItem from "@/mall/pages/cart/OrderItem";

const Index: React.FC = () => {

    useEffect(() => {
        load();
    }, []);

    const load = async () => {
    }


    return (
        <View className={styles.page}>
            {
                allGoodsPromotionList && allGoodsPromotionList.map((item: any, index: number) => {
                    return (
                        <OrderItem key={index} data={item}></OrderItem>
                    )
                })
            }

        </View>
    );
};

export default Index;
